#include "CFood.h"
#include"CSnake.h"

CFood::CFood(const GameBasic& basic) :foodPosition(basic.defaultPos) {
	itemType = ItemType::FOOD;
};

Position CFood::getPosition() const {
	return foodPosition;
}

void CFood::OnEat(CSnake& snake) {
	snake.grow(true);
}

